﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MicropleSoft.Common.Library
{
    public class ConstFlags
    {
        /// <summary>
        /// 是
        /// </summary>
        public const int IsYes = 1;

        /// <summary>
        /// 否
        /// </summary>
        public const int IsNo = 0;

        /// <summary>
        /// 父节点为-1表示没有父节点，为根节点
        /// </summary>
        public const int ParentKindId4Root = -1;

        /// <summary>
        /// 资料种类:1-系统资料
        /// </summary>
        public const int 	ItemType4System = 1;

        /// <summary>
        /// 资料种类:2-辅助资料
        /// </summary>
        public const int ItemType4Assist = 2;

        /// <summary>
        /// 资料种类:3-用户自定义资料
        /// </summary>
        public const int ItemType4Custom = 3;

        /// <summary>
        /// STATUS状态：1-正常
        /// </summary>
        public const int Status4Normal = 1;

        /// <summary>
        /// STATUS状态：2-禁用，作废
        /// </summary>
        public const int Status4Cancel = 2;

        /// <summary>
        /// COLUMN_TYPE 1-varchar
        /// </summary>
        public const int ColumnType4Varchar = 1;

        /// <summary>
        ///  COLUMN_TYPE 2-int
        /// </summary>
        public const int ColumnType4Int = 2;

        /// <summary>
        ///  COLUMN_TYPE 3-datatime
        /// </summary>
        public const int ColumnType4DateTime = 3;

        /// <summary>
        ///  COLUMN_TYPE 4- number
        /// </summary>
        public const int ColumnType4Number = 4;

        /// <summary>
        ///  COLUMN_TYPE 5-布尔类型（实际使用int类型0表示否1表示是）
        /// </summary>
        public const int ColumnType4Bool = 5;
     
        /// <summary>
        /// 1-系统字段不可以修改删除
        /// </summary>
        public const int SysColumn4Unchangeable = 1;

        /// <summary>
        /// 2-用户增加字段可以删除
        /// </summary>
        public const int SysColumn4CanDelete = 2;
    }
}
